import request from '/@/utils/request'
import {prefix} from '/@/api/ws'


export function getArticleClass(data: object) {
    return request({
        url: prefix + '/wArticleClass/getArticleClass',
        method: 'post',
        data
    })
}

export function getAllList(data: object) {
    return request({
        url: prefix + '/wArticleClass/getAllList',
        method: 'post',
        data
    })
}


export function create(data: object) {
    return request({
        url: prefix + '/wArticleClass/create',
        method: 'post',
        data
    })
}


export function update(data: object) {
    return request({
        url: prefix + '/wArticleClass/update',
        method: 'post',
        data
    })
}


export function remove(id) {
    return request({
        url: prefix + '/wArticleClass/remove/'+id,
        method: 'get',
    })
}


//获取收录类型

export function getCollectionList() {
    return request({
        url: prefix + '/wArticleClass/getCollectionList',
        method: 'get',
    })
}